package com.jye.cloud.user.mapper;


import com.jye.cloud.domain.Payment;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface PaymentMapper {

    Payment findPayById(@Param("id") int id);

    void updatePay(@Param("pay") Payment pay);

    int addPay(@Param("payment")Payment payment);

    List<Payment> findMyPayByUId(@Param("uId")int uId, @Param("skip")int skip, @Param("limit")int limit);

    List<Payment> findMyPayByUIdAndStatus(@Param("uId")int uId, @Param("status")String status, @Param("skip")int skip, @Param("limit")int limit);

    String findPayStatusById(@Param("id") int id);

    Payment findPayByUIdAndCId(@Param("uId")int uId, @Param("orderId")int orderId);

    List<Payment> findMyPayByUIdAndType(@Param("uId")int uId,@Param("type")String type,@Param("skip")int skip, @Param("limit")int limit);

    String findPayStatusByPId(@Param("pId") int pId);
}
